package org.lilred.nzbberry.http;
/**
 * Interface that objects making HTTP Requests must implement.
 */
public interface RequestsHttp {
	/**
	 * Called if the HTTP response is 200
	 * @param	result		the bytes that the server responded with
	 * @param	contentType	the content type that the server responded with.  If its text, you can use new String(result) to make a string.
	 */
	public void requestSucceeded(byte[] result, String contentType);
	
	/**
	 * Called if the HTTP response isn't 200
	 * @param	result			the bytes that the server responded with
	 * @param	responseCode	the response code from the server
	 */
	public void requestFailed(byte[] result, int responseCode);
}
